<template>
  <el-switch
    v-bind="$attrs"
    v-on="$listeners"
    :active-value="activeValue"
    :inactive-value="inactiveValue">
  </el-switch>
</template>

<script>
  export default {
    name: "my-switch",
    props: {
      /** 默认0,1 开启时为1,关闭为0 **/
      activeValue: {
        type: [Number,String,Boolean],
        default: 1
      },
      inactiveValue: {
        type: [Number,String,Boolean],
        default: 0
      }
    },
  }
</script>

<style scoped>

</style>
